package com.papercut;

import android.app.Activity;

import android.content.Context;
import android.os.Bundle;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

import com.papercut.R;
import com.xtify.android.sdk.PersistentLocationManager;
import com.xtify.android.sdk.PersistentLocationManager.SetUserKeyListener;

public class PaperCutActivity extends Activity {
	private PersistentLocationManager persistentLocationManager;


	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	


	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		super.onCreateOptionsMenu(menu);
		menu.add(0, 0, 0, "Turn off Notif");
		menu.add(0, 1, 0, "Settings");
		menu.findItem(0).setIcon(android.R.drawable.ic_menu_revert);
		menu.findItem(1).setIcon(R.drawable.menu_preferences);

		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case 0: {
			/*
			 * Intent intent = new Intent(this, NotificationInbox.class);
			 * startActivity(intent);
			 */
			persistentLocationManager.setNotificationsDelivery(false);
			persistentLocationManager.setLocationTracking(false);
			return true;
		}
		case 1: {
			persistentLocationManager.showSettingsActivity(this, true);
			return true;
		}

		}
		return false;
	}
}